package com.TwinBlade.PicturePassword;

import android.app.Activity;
import android.content.Intent;
import android.content.pm.PackageInfo;
import android.content.pm.PackageManager;
import android.os.Build;
import android.os.Build.VERSION;
import android.os.Bundle;
import android.text.Editable;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;
import android.widget.EditText;

public class Support extends Activity
  implements View.OnClickListener
{
  private EditText a;
  private Button b;

  private int a()
  {
    try
    {
      int i = getPackageManager().getPackageInfo(getPackageName(), 0).versionCode;
      return i;
    }
    catch (Exception localException)
    {
    }
    return 0;
  }

  private String b()
  {
    try
    {
      String str = getPackageManager().getPackageInfo(getPackageName(), 0).versionName;
      return str;
    }
    catch (Exception localException)
    {
    }
    return "Unknown";
  }

  public void onClick(View paramView)
  {
    String str = this.a.getText().toString();
    if (str.length() < 5)
    {
      Utilities.a(this, getString(2131296459), 3, true);
      return;
    }
    Intent localIntent = new Intent("android.intent.action.SEND");
    localIntent.setType("plain/text");
    localIntent.putExtra("android.intent.extra.EMAIL", new String[] { "twinbladecorp@gmail.com" });
    localIntent.putExtra("android.intent.extra.SUBJECT", "Picture Password V" + b() + " Email Support");
    localIntent.putExtra("android.intent.extra.TEXT", str + "\n \n" + "------------------------------" + "\n" + "Application Version: " + b() + " - " + Integer.toString(a()) + "\n" + "Android Version: " + Integer.toString(Build.VERSION.SDK_INT) + "\n" + "Device Manufacturer: " + Build.MANUFACTURER + "\n" + "Device Model: " + Build.MODEL + "\n" + "Device Product: " + Build.PRODUCT + "\n" + "PPA PK Status: " + bd.a(this) + "\n \n");
    startActivity(Intent.createChooser(localIntent, "Select Email Client"));
    finish();
  }

  public void onCreate(Bundle paramBundle)
  {
    super.onCreate(paramBundle);
    setContentView(2130903050);
    this.b = ((Button)findViewById(2131230778));
    this.b.setOnClickListener(this);
    this.a = ((EditText)findViewById(2131230777));
    this.a.setHint(getString(2131296414));
  }
}

/* Location:           D:\Studium\Bachelorarbeit\BA Marcus Wobig\BA\BA\Decompiler\PicturePassword APK\Programm\PicturePassword_dex2jar.jar
 * Qualified Name:     com.TwinBlade.PicturePassword.Support
 * JD-Core Version:    0.6.2
 */